package com.bm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ejyy_move_car
 */
@TableName(value ="ejyy_move_car")
@Data
public class EjyyMoveCar implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long communityId;

    /**
     * 
     */
    private Long wechatMpUserId;

    /**
     * 
     */
    private String carNumber;

    /**
     * 
     */
    private Boolean moveReason;

    /**
     * 
     */
    private String liveImg;

    /**
     * 
     */
    private Boolean subscribed;

    /**
     * 
     */
    private Boolean haveConcatInfo;

    /**
     * 
     */
    private Long responseUserId;

    /**
     * 
     */
    private String responseContent;

    /**
     * 
     */
    private Long responsedAt;

    /**
     * 
     */
    private Long createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EjyyMoveCar other = (EjyyMoveCar) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()))
            && (this.getWechatMpUserId() == null ? other.getWechatMpUserId() == null : this.getWechatMpUserId().equals(other.getWechatMpUserId()))
            && (this.getCarNumber() == null ? other.getCarNumber() == null : this.getCarNumber().equals(other.getCarNumber()))
            && (this.getMoveReason() == null ? other.getMoveReason() == null : this.getMoveReason().equals(other.getMoveReason()))
            && (this.getLiveImg() == null ? other.getLiveImg() == null : this.getLiveImg().equals(other.getLiveImg()))
            && (this.getSubscribed() == null ? other.getSubscribed() == null : this.getSubscribed().equals(other.getSubscribed()))
            && (this.getHaveConcatInfo() == null ? other.getHaveConcatInfo() == null : this.getHaveConcatInfo().equals(other.getHaveConcatInfo()))
            && (this.getResponseUserId() == null ? other.getResponseUserId() == null : this.getResponseUserId().equals(other.getResponseUserId()))
            && (this.getResponseContent() == null ? other.getResponseContent() == null : this.getResponseContent().equals(other.getResponseContent()))
            && (this.getResponsedAt() == null ? other.getResponsedAt() == null : this.getResponsedAt().equals(other.getResponsedAt()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        result = prime * result + ((getWechatMpUserId() == null) ? 0 : getWechatMpUserId().hashCode());
        result = prime * result + ((getCarNumber() == null) ? 0 : getCarNumber().hashCode());
        result = prime * result + ((getMoveReason() == null) ? 0 : getMoveReason().hashCode());
        result = prime * result + ((getLiveImg() == null) ? 0 : getLiveImg().hashCode());
        result = prime * result + ((getSubscribed() == null) ? 0 : getSubscribed().hashCode());
        result = prime * result + ((getHaveConcatInfo() == null) ? 0 : getHaveConcatInfo().hashCode());
        result = prime * result + ((getResponseUserId() == null) ? 0 : getResponseUserId().hashCode());
        result = prime * result + ((getResponseContent() == null) ? 0 : getResponseContent().hashCode());
        result = prime * result + ((getResponsedAt() == null) ? 0 : getResponsedAt().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", communityId=").append(communityId);
        sb.append(", wechatMpUserId=").append(wechatMpUserId);
        sb.append(", carNumber=").append(carNumber);
        sb.append(", moveReason=").append(moveReason);
        sb.append(", liveImg=").append(liveImg);
        sb.append(", subscribed=").append(subscribed);
        sb.append(", haveConcatInfo=").append(haveConcatInfo);
        sb.append(", responseUserId=").append(responseUserId);
        sb.append(", responseContent=").append(responseContent);
        sb.append(", responsedAt=").append(responsedAt);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}